package com.spddr.pmos.jpa;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.seqdata.jpa.AbstractPersistable;

@Entity
@Table(name = "unit_water_cost")
public class UnitWaterCost extends AbstractPersistable<UnitWaterCostId> {
	private static final long serialVersionUID = 1L;

	private Double cost;

	public UnitWaterCost() {
	}

	public UnitWaterCost(long unit, BigDecimal volume) {
		setId(new UnitWaterCostId(unit, volume));
	}

	@Column(name = "cost")
	public Double getCost() {
		return this.cost;
	}

	public void setCost(Double cost) {
		this.cost = cost;
	}
}